<template>
  <div class="app-main" v-loading="loading">
    <div class="divTmp" v-show="loading"></div>
    <div class="course-units-page" v-show="!loading">
      <div class="unit-page-body" style="position: relative;">
        <div class="empty">
          <span>暂无课程单元</span>
        </div>
      </div>
    </div>
  </div>

</template>

<script>
export default {
  data(){
    return{
      loading: true,
    }
  },
  created() {

    this.init()
  },
  methods:{
    async init(){
        this.closeLoading()
    },


    closeLoading(){
      this.timer = null
      this.timer = setTimeout(()=>{
        this.loading = false
      },500)
    }
  }
}
</script>

<style scoped>

div {
  display: block;
  unicode-bidi: isolate;
}
*, :after, :before {
  box-sizing: border-box;
}
::v-deep .el-loading-mask {
  transition: opacity 0s;
}
::v-deep .el-loading-spinner {
  top: 100%;
  margin-top: 200px;
  width: 100%;
  text-align: center;
  position: absolute;
}

.empty {
  margin-top: 48px;
  padding: 50px 0;
  text-align: center;
  border: 1px dashed #e3e3e9;
  color: #969696;
}
</style>